<html>
  <head>
    <title>ModelQuery</title>
    <link rel='stylesheet' type='text/css' href='../../../stylesheet.css' title='Style' />
  </head>
  <body>
    <table border='0' width='100%' cellpadding='1' cellspacing='0' summary=''>
      <tr>
        <td colspan='2' bgcolor='#EEEEFF' class='NavBarCell1'>
          <table border='0' cellpadding='0' cellspacing='3' summary=''>
            <tr align='center' valign='top'>
              <td bgcolor='#EEEEFF' class='NavBarCell1'>
                <a href='../../../overview-summary.html'>
                  <font class='NavBarFont1'>
                    <b>Overview</b>
                  </font>
                </a>&nbsp;
              </td>
              <td bgcolor='#EEEEFF' class='NavBarCell1'>
                <a href='package-summary.html'>
                  <font class='NavBarFont1'>
                    <b>Package</b>
                  </font>
                </a>&nbsp;
              </td>
              <td bgcolor='#FFFFFF' class='NavBarCell1Rev'>
                <font class='NavBarFont1Rev'>
                  <b>Unit</b>
                </font>&nbsp;
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <hr />
    <h2>
      <font size='-1'>OpenEdge\PresentationLayer\Model</font>
      <br />CLASS ModelQuery
    </h2>
    <p>CLASS OpenEdge.PresentationLayer.Model.ModelQuery INHERITS <a href="../../../OpenEdge/Core/System/Query.cls.html" title="OpenEdge.Core.System.Query" target="classFrame">Query</a> IMPLEMENTS <a href="../../../OpenEdge/PresentationLayer/Model/IModelQuery.cls.html" title="OpenEdge.PresentationLayer.Model.IModelQuery" target="classFrame">IModelQuery</a> , <a href="../../../OpenEdge/PresentationLayer/Model/IModelEventHandler.cls.html" title="OpenEdge.PresentationLayer.Model.IModelEventHandler" target="classFrame">IModelEventHandler</a> </p>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
				<A NAME="property_summary"><!-- --></A>
				<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
				<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
				<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
				<B>Property Summary</B></FONT></TH>
				</TR>
				
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code><a href="../../../OpenEdge/PresentationLayer/Model/IModel.cls.html" title="OpenEdge.PresentationLayer.Model.IModel" target="classFrame">IModel</a></code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#property.Model'>Model</a>
          </b> PUBLIC GET PROTECTED SET 
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>INTEGER</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#property.NumSelectedRows'>NumSelectedRows</a>
          </b> PUBLIC GET PROTECTED SET 
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>CHARACTER</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#property.QueryName'>QueryName</a>
          </b> PUBLIC GET PROTECTED SET 
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>LOGICAL</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#property.RequiresReopen'>RequiresReopen</a>
          </b> PUBLIC GET SET 
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Does this query object require a Reopen() call? A query might be flagged as such
      </td>
    </tr>
				</TABLE>&nbsp;<P>
				
				<A NAME="method_summary"><!-- --></A>
				<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
				<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
				<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
				<B>Method Summary</B></FONT></TH>
				</TR>
				
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code></code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#(openedge.presentationlayer.model.imodel,character,handle,openedge.core.system.iquerydefinition)'>CONSTRUCTOR </a>
          </b>(<a href="../../../OpenEdge/PresentationLayer/Model/IModel.cls.html" title="OpenEdge.PresentationLayer.Model.IModel" target="classFrame">IModel</a> poModel, CHARACTER pcName, HANDLE phQueryHandle, <a href="../../../OpenEdge/Core/System/IQueryDefinition.cls.html" title="OpenEdge.Core.System.IQueryDefinition" target="classFrame">IQueryDefinition</a> poQueryDefinition)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code></code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#(openedge.presentationlayer.model.imodel,character,openedge.core.system.iquerydefinition)'>CONSTRUCTOR </a>
          </b>(<a href="../../../OpenEdge/PresentationLayer/Model/IModel.cls.html" title="OpenEdge.PresentationLayer.Model.IModel" target="classFrame">IModel</a> poModel, CHARACTER pcName, <a href="../../../OpenEdge/Core/System/IQueryDefinition.cls.html" title="OpenEdge.Core.System.IQueryDefinition" target="classFrame">IQueryDefinition</a> poQueryDefinition)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#clearselection()'> ClearSelection</a>
          </b>()
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#dataadderrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'> DataAddErrorHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#dataaddhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'> DataAddHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fired after a record has been created in the model (local)
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#datacommiterrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'> DataCommitErrorHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#datacommittedhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'> DataCommittedHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Event fired after the Model received its response from a FetchData()
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#datadeleteerrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'> DataDeleteErrorHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#datadeletehandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'> DataDeleteHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fired after a record has been removed (local)
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#datafetchedhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'> DataFetchedHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Event fired after the Model received its response from a SaveData()
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#datafetcherrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'> DataFetchErrorHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#datasaveerrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'> DataSaveErrorHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#datasavehandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'> DataSaveHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fired after a record has been saved to the model (local save,
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#deselectcurrentrow()'> DeselectCurrentRow</a>
          </b>()
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#deselectrow(character)'> DeselectRow</a>
          </b>(CHARACTER pcRowKey)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>CHARACTER</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#getselectedrowkey(integer)'> GetSelectedRowKey</a>
          </b>(INTEGER piRow)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#open(handle)'> Open</a>
          </b>(HANDLE phQuery)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>LOGICAL</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#queryrequiresreopen(character)'> QueryRequiresReopen</a>
          </b>(CHARACTER pcActionTables)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Assume query requries a reopen if any of the tables in the Model Action are in the
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#resetqueryhandle()'> ResetQueryHandle</a>
          </b>()
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#selectcurrentrow()'> SelectCurrentRow</a>
          </b>()
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#selectrow(character)'> SelectRow</a>
          </b>(CHARACTER pcRowKey)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#servicerequestcompletedhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'> ServiceRequestCompletedHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Event fired after the Model received its response from a service request.
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#servicerequesterrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'> ServiceRequestErrorHandler</a>
          </b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      </td>
    </tr>
    <tr bgcolor='white' class='TableRowColor'>
      <td align='right' valign='top' width='1%'>
        <font size='-1'>
          <code>VOID</code>
        </font>
      </td>
      <td>
        <code>
          <b>
            <a href='#setqueryhandle(handle)'> SetQueryHandle</a>
          </b>(HANDLE phQuery)
        </code><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allows the DatasetModel to use the queries created by
      </td>
    </tr>
				</TABLE>&nbsp;<P>
				
				<A NAME="property_detail"><!-- --></A>
				<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
				<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
				<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
				<B>Property Detail</B></FONT></TH>
				</TR></TABLE>
				
    <a name='property.Model'><!-- --></a>
    <h3>Model</h3>
    <code><a href="../../../OpenEdge/PresentationLayer/Model/IModel.cls.html" title="OpenEdge.PresentationLayer.Model.IModel" target="classFrame">IModel</a> PUBLIC GET PROTECTED SET </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='property.NumSelectedRows'><!-- --></a>
    <h3>NumSelectedRows</h3>
    <code>INTEGER PUBLIC GET PROTECTED SET </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='property.QueryName'><!-- --></a>
    <h3>QueryName</h3>
    <code>CHARACTER PUBLIC GET PROTECTED SET </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='property.RequiresReopen'><!-- --></a>
    <h3>RequiresReopen</h3>
    <code>LOGICAL PUBLIC GET SET </code>
    <dl>
      <dd>Does this query object require a Reopen() call? A query might be flagged as such <p> </dd>
      <dd>by a Model when new data is added from a busines entity (or even locally) in batch/bundle mode. </dd>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
				<A NAME="method_detail"><!-- --></A>
				<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
				<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
				<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
				<B>Method Detail</B></FONT></TH>
				</TR></TABLE>
				
    <a name='(openedge.presentationlayer.model.imodel,character,handle,openedge.core.system.iquerydefinition)'><!-- --></a>
    <h3>CONSTRUCTOR</h3>
    <code>PUBLIC  
      <b>CONSTRUCTOR</b>(<a href="../../../OpenEdge/PresentationLayer/Model/IModel.cls.html" title="OpenEdge.PresentationLayer.Model.IModel" target="classFrame">IModel</a> poModel, CHARACTER pcName, HANDLE phQueryHandle, <a href="../../../OpenEdge/Core/System/IQueryDefinition.cls.html" title="OpenEdge.Core.System.IQueryDefinition" target="classFrame">IQueryDefinition</a> poQueryDefinition)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='(openedge.presentationlayer.model.imodel,character,openedge.core.system.iquerydefinition)'><!-- --></a>
    <h3>CONSTRUCTOR</h3>
    <code>PUBLIC  
      <b>CONSTRUCTOR</b>(<a href="../../../OpenEdge/PresentationLayer/Model/IModel.cls.html" title="OpenEdge.PresentationLayer.Model.IModel" target="classFrame">IModel</a> poModel, CHARACTER pcName, <a href="../../../OpenEdge/Core/System/IQueryDefinition.cls.html" title="OpenEdge.Core.System.IQueryDefinition" target="classFrame">IQueryDefinition</a> poQueryDefinition)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='clearselection()'><!-- --></a>
    <h3>ClearSelection</h3>
    <code>PUBLIC  VOID
      <b>ClearSelection</b>()
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='dataadderrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'><!-- --></a>
    <h3>DataAddErrorHandler</h3>
    <code>PUBLIC  VOID
      <b>DataAddErrorHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='dataaddhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'><!-- --></a>
    <h3>DataAddHandler</h3>
    <code>PUBLIC  VOID
      <b>DataAddHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>Fired after a record has been created in the model (local) <p> </dd>
      <dd>
        <dl><!-- -->
          <dt>
            <b>Parameters:</b>
          </dt>
          <dd>IComponent - The Model sending the event<br/>EventArgs - Arguments pertinent to the event<br/></dd>
        </dl>
      </dd>
    </dl>
    <hr />
    <a name='datacommiterrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'><!-- --></a>
    <h3>DataCommitErrorHandler</h3>
    <code>PUBLIC  VOID
      <b>DataCommitErrorHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='datacommittedhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'><!-- --></a>
    <h3>DataCommittedHandler</h3>
    <code>PUBLIC  VOID
      <b>DataCommittedHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>Event fired after the Model received its response from a FetchData() <p> </dd>
      <dd>service request. </dd>
      <dd>
        <dl><!-- -->
          <dt>
            <b>Parameters:</b>
          </dt>
          <dd>IComponent - The Model sending the event<br/>EventArgs - Arguments pertinent to the event<br/></dd>
        </dl>
      </dd>
    </dl>
    <hr />
    <a name='datadeleteerrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'><!-- --></a>
    <h3>DataDeleteErrorHandler</h3>
    <code>PUBLIC  VOID
      <b>DataDeleteErrorHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='datadeletehandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'><!-- --></a>
    <h3>DataDeleteHandler</h3>
    <code>PUBLIC  VOID
      <b>DataDeleteHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>Fired after a record has been removed (local) <p> </dd>
      <dd>
        <dl><!-- -->
          <dt>
            <b>Parameters:</b>
          </dt>
          <dd>IComponent - The Model sending the event<br/>EventArgs - Arguments pertinent to the event<br/></dd>
        </dl>
      </dd>
    </dl>
    <hr />
    <a name='datafetchedhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'><!-- --></a>
    <h3>DataFetchedHandler</h3>
    <code>PUBLIC  VOID
      <b>DataFetchedHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>Event fired after the Model received its response from a SaveData() <p> </dd>
      <dd>service request. </dd>
      <dd>
        <dl><!-- -->
          <dt>
            <b>Parameters:</b>
          </dt>
          <dd>IComponent - The Model sending the event<br/>EventArgs - Arguments pertinent to the event<br/></dd>
        </dl>
      </dd>
    </dl>
    <hr />
    <a name='datafetcherrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'><!-- --></a>
    <h3>DataFetchErrorHandler</h3>
    <code>PUBLIC  VOID
      <b>DataFetchErrorHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='datasaveerrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'><!-- --></a>
    <h3>DataSaveErrorHandler</h3>
    <code>PUBLIC  VOID
      <b>DataSaveErrorHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='datasavehandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'><!-- --></a>
    <h3>DataSaveHandler</h3>
    <code>PUBLIC  VOID
      <b>DataSaveHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>Fired after a record has been saved to the model (local save, <p> </dd>
      <dd>not a commit). </dd>
      <dd>
        <dl><!-- -->
          <dt>
            <b>Parameters:</b>
          </dt>
          <dd>IComponent - The Model sending the event<br/>EventArgs - Arguments pertinent to the event<br/></dd>
        </dl>
      </dd>
    </dl>
    <hr />
    <a name='deselectcurrentrow()'><!-- --></a>
    <h3>DeselectCurrentRow</h3>
    <code>PUBLIC  VOID
      <b>DeselectCurrentRow</b>()
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='deselectrow(character)'><!-- --></a>
    <h3>DeselectRow</h3>
    <code>PUBLIC  VOID
      <b>DeselectRow</b>(CHARACTER pcRowKey)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='getselectedrowkey(integer)'><!-- --></a>
    <h3>GetSelectedRowKey</h3>
    <code>PUBLIC  CHARACTER
      <b>GetSelectedRowKey</b>(INTEGER piRow)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='open(handle)'><!-- --></a>
    <h3>Open</h3>
    <code>OVERRIDE PROTECTED  VOID
      <b>Open</b>(HANDLE phQuery)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='queryrequiresreopen(character)'><!-- --></a>
    <h3>QueryRequiresReopen</h3>
    <code>PROTECTED  LOGICAL
      <b>QueryRequiresReopen</b>(CHARACTER pcActionTables)
    </code>
    <dl>
      <dd>Assume query requries a reopen if any of the tables in the Model Action are in the <p> </dd>
      <dd>query itself. </dd>
      <dd>
        <dl><!-- -->
          <dt>
            <b>Parameters:</b>
          </dt>
          <dd>character - An array of tables being checked<br/></dd>
          <dt>
            <b>Returns:</b>
          </dt>
          <dd>logical Whether the query needs to be reopened.</dd>
        </dl>
      </dd>
    </dl>
    <hr />
    <a name='resetqueryhandle()'><!-- --></a>
    <h3>ResetQueryHandle</h3>
    <code>PUBLIC  VOID
      <b>ResetQueryHandle</b>()
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='selectcurrentrow()'><!-- --></a>
    <h3>SelectCurrentRow</h3>
    <code>PUBLIC  VOID
      <b>SelectCurrentRow</b>()
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='selectrow(character)'><!-- --></a>
    <h3>SelectRow</h3>
    <code>PUBLIC  VOID
      <b>SelectRow</b>(CHARACTER pcRowKey)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='servicerequestcompletedhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelactioneventargs)'><!-- --></a>
    <h3>ServiceRequestCompletedHandler</h3>
    <code>PUBLIC  VOID
      <b>ServiceRequestCompletedHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poSender, <a href="../../../OpenEdge/PresentationLayer/Common/ModelActionEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelActionEventArgs" target="classFrame">ModelActionEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>Event fired after the Model received its response from a service request. <p> </dd>
      <dd>Individual events like DataFetched above will also fire. </dd>
      <dd>
        <dl><!-- -->
          <dt>
            <b>Parameters:</b>
          </dt>
          <dd>IComponent - The Model sending the event<br/>EventArgs - Arguments pertinent to the event<br/></dd>
        </dl>
      </dd>
    </dl>
    <hr />
    <a name='servicerequesterrorhandler(openedge.commoninfrastructure.common.icomponent,openedge.presentationlayer.common.modelerroreventargs)'><!-- --></a>
    <h3>ServiceRequestErrorHandler</h3>
    <code>PUBLIC  VOID
      <b>ServiceRequestErrorHandler</b>(<a href="../../../OpenEdge/CommonInfrastructure/Common/IComponent.cls.html" title="OpenEdge.CommonInfrastructure.Common.IComponent" target="classFrame">IComponent</a> poComponent, <a href="../../../OpenEdge/PresentationLayer/Common/ModelErrorEventArgs.cls.html" title="OpenEdge.PresentationLayer.Common.ModelErrorEventArgs" target="classFrame">ModelErrorEventArgs</a> poEventArgs)
    </code>
    <dl>
      <dd>
        <dl><!-- --></dl>
      </dd>
    </dl>
    <hr />
    <a name='setqueryhandle(handle)'><!-- --></a>
    <h3>SetQueryHandle</h3>
    <code>PUBLIC  VOID
      <b>SetQueryHandle</b>(HANDLE phQuery)
    </code>
    <dl>
      <dd>Allows the DatasetModel to use the queries created by <p> </dd>
      <dd>the ProBindingSource if it needs to. DatasetModel:CreateDefaultQUeries() creates a bunch of queries based on the relations; the PBS uses the same queries (the PDS' relation queries) as a basis for its' own 'smaller'/individual queries when its working in a heirachical grid like the UlraControls' UltraGrid. The query definitions will stay the same for all queries on a relation - so you won't be able to sort customer 1's orders differently from customer 2's in the same grid - but we're going to use that single query def for all the individual queries, and will do so by pushing the actual query in use in to this object. </dd>
      <dd>
        <dl><!-- -->
          <dt>
            <b>Parameters:</b>
          </dt>
          <dd>handle - An ABL query handle<br/></dd>
        </dl>
      </dd>
    </dl>
    <hr />
  </body>
</html>